package com.zwh.modbus.modbus4j;

import java.util.List;

import com.zwh.modbus.modbus4j.param.TConnectDevice;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author hw
 * @className 连接设备服务
 * @Date 2022/3/4 10:55
 */
//@Component
//@FeignClient(contextId = "remoteConnectDeviceService" ,value = ServiceNameConstants.DEVICE_SERVICE,fallbackFactory = RemoteConnectDeviceFallback.class)
public interface RemoteConnectDeviceService {

//    @RequestMapping(value = "/baop-device/tConnectDevice/getBydeviceIden")
    ResponseVo getBydeviceId(@RequestParam(name = "deviceId")Long deviceId);

//    @RequestMapping(value = "/baop-device/tConnectDevice/updateStatus")
    void  updateStatus(@RequestParam(name = "deviceId")Long deviceId,
                       @RequestParam(name = "status")Integer status);

//    @GetMapping(value = "/baop-device/tConnectDevice/allDeviceOffline")
    void  allDeviceOffline();

//    @RequestMapping(value = "/baop-device/tConnectDevice/findOneByDeviceIds")
    List<TConnectDevice> findOneByDeviceIds(@RequestParam(name = "deviceIds")String deviceIds);
}
